package cn.tutu.blockchain.mining.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * <p>
 * Title: MiningRecords
 * </p>
 * <p>
 * Description:挖矿记录实体
 * </p>
 * 
 * @author 眭善峰
 * @date 2018年4月24日
 *
 */
public class MiningRecords {

	private String id; // 主键ID
	private String ethId; // 用户ID

	private Double currencyValue; // 挖矿所得币值
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date miningTime; // 挖矿时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createDatetime; // 创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lastUpdateDatetime;// 最后更新时间

	public String getEthId() {
		return ethId;
	}

	public void setEthId(String ethId) {
		this.ethId = ethId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Double getCurrencyValue() {
		return currencyValue;
	}

	public void setCurrencyValue(Double currencyValue) {
		this.currencyValue = currencyValue;
	}

	public Date getMiningTime() {
		return miningTime;
	}

	public void setMiningTime(Date miningTime) {
		this.miningTime = miningTime;
	}

	public Date getCreateDatetime() {
		return createDatetime;
	}

	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}

	public Date getLastUpdateDatetime() {
		return lastUpdateDatetime;
	}

	public void setLastUpdateDatetime(Date lastUpdateDatetime) {
		this.lastUpdateDatetime = lastUpdateDatetime;
	}

}
